<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="m" uri="/cutm_tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>首页滚动文字设置</title>
<script type="text/javascript">
	$(document).ready(function() {
		$('#saveContent').click(function() {
			var data = {};
			data['education.id']=$('input[name=education.id]').val();
			data['education.content'] = $('textarea[name=education.content]').val();
			$.postAjax('home/Educate', data, function(d) {
				if ($.trim(d) == 'text1') {
					$('input[name=education.id]').val($.trim(d).substring(4));					
					$.alert('保存成功')
				} else {
					$.alert('保存失败')
				}
			});
		});
	});
</script>
</head>
<body>
	<h2 class="title">首页滚动文字设置</h2>
	<table class="form">
		<s:hidden name="education.id" ></s:hidden>
		<tr>
			<th width="20%">内容</th>
			<td width="80%"><s:textarea rows="10" cols="" name="education.content"></s:textarea>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="2"><button id="saveContent">保存</button>
			</td>
		</tr>
	</table>
</body>
</html>